| Conditions | 6 |
| Paths | 3 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 11 | export const stateGetter = (state, props, key, entry) => { |
||
| 12 | |||
| 13 | if (props |
||
| 14 | && props.reducerKeys |
||
| 15 | && Object.keys(props.reducerKeys).length > 0 |
||
| 16 | && props.reducerKeys[key]) { |
||
| 17 | |||
| 18 | const dynamicKey = props.reducerKeys[key]; |
||
| 19 | const dynamicState = get(state, dynamicKey, entry); |
||
| 20 | |||
| 21 | return dynamicState; |
||
| 22 | } |
||
| 23 | |||
| 24 | const val = get(state, key, entry); |
||
| 25 | |||
| 26 | if (val) { |
||
| 27 | return val; |
||
| 28 | } |
||
| 29 | |||
| 30 | return null; |
||
| 31 | }; |
||
| 32 | |||
| 39 |